package com.scedu.form;

import com.scedu.dto.CartDTO;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/*
订单表单
name: "张三"
phone: "18868822111"
address: "慕课网总部"
openid: "ew3euwhd7sjw9diwkq" //用户的微信openid
items: [{
    productId: "1423113435324",
    productQuantity: 2 //购买数量
}]

 */
@Data
public class OrderForm {
    @NotEmpty(message = "姓名必填")
    private String name; //姓名

    @NotNull(message = "电话必填")
    private  String phone;
    @NotNull(message = "地址必填")
    private  String address;
    @NotNull(message = "用户微信号必填")
    private String openid;
    @NotNull(message = "订单不能为空")
    private String items;

}
